package com.cb.eduservice.client.impl;

import com.cb.eduservice.client.VodClient;
import com.cb.utils.R;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * vod熔断 , 远程调用出错 , 或者超时 ,
 * 会执行对应方法
 *
 * @author cb
 * @version 1.0
 * @date 2020/6/26 11:56
 */
@Component
public class VodFileDegradeFeignClient implements VodClient {

    @Override
    public R removeAliyunVideo(String id) {
        return R.error().message("等待超时...");
    }

    @Override
    public R removeBatchAliyunVideo(List<String> videoIdList) {
        return R.error().message("等待超时...");
    }
}
